<h1>Admins Manage Users</h1>	
<div class="center">
	<form action="manage-users.html" method="post">
		<dl>
			<dt>ID:</dt>
	 		<dd>
	 		<input type="hidden" name="id" value="<?php $message = $mvc->getObject(UsersService::ID);echo isset($message) ? $message : 'id';?>"/>
	 		<?php $message = $mvc->getObject(UsersService::ID);echo isset($message) ? $message : 'id';?>
	 		</dd>
	 		<dt>User name:</dt> 
	 		<dd><input type="text" name="username" value="<?php $message = $mvc->getObject(UsersService::USERNAME);echo isset($message) ? $message : 'username';?>"/></dd>
			<dt>First Name:</dt>
	 		<dd><input type="text" name="firstname" value="<?php $message = $mvc->getObject(UsersService::FIRSTNAME);echo isset($message) ? $message : 'firstname';?>"/></dd>
	 		<dt>Last Name:</dt>
	 		<dd><input type="text" name="lastname" value="<?php $message = $mvc->getObject(UsersService::LASTNAME);echo isset($message) ? $message : 'lastname';?>"/></dd>
			<dt>Email:</dt>
	 		<dd><input type="text" name="email" value="<?php $message = $mvc->getObject(UsersService::EMAIL);echo isset($message) ? $message : 'email';?>"/></dd>
			<dt>Status:</dt>
	 		<dd>
	 			<input type="radio" name="enabled" value="1" <?php $message = $mvc->getObject(UsersService::ENABLED);echo $message == 1 ? 'checked' : ''; ?>/>Enabled
				<input type="radio" name="enabled" value="0" <?php $message = $mvc->getObject(UsersService::ENABLED);echo $message == 1 ? '' : 'checked'; ?>/>Disabled<br/>
			</dd>
			<dt>Role:</dt>
	 		<dd>
	 		<select name="role">
	 			<option><?php $message = $mvc->getObject(UsersService::ROLE);echo isset($message) ? $message : 'role';?></option>
	 			<?php if ($message != UsersService::ROLE_UR){ ?>
	 			<option><?php echo UsersService::ROLE_UR ?></option>
	 			<?php }?>
	 			<?php if ($message != UsersService::ROLE_MR){ ?>
	 			<option><?php echo UsersService::ROLE_MR ?></option>
	 			<?php }?>
	 			<?php if ($message != UsersService::ROLE_AR){ ?>
	 			<option><?php echo UsersService::ROLE_AR ?></option>
	 			<?php }?>
	 		</select>
			</dd>
		</dl>
		<input type="submit" name="submit" value="Submit Changes"/>
	</form>	
</div>
